import request from '@/utils/request'


// 查询聊天组列表
export function selectUserGroup() {
  return request({
    url: '/project/group/selectUserGroup',
    method: 'get',
  })
}

// 查询聊天组列表
export function listGroup(query) {
  return request({
    url: '/project/group/list',
    method: 'get',
    params: query
  })
}

// 查询聊天组详细
export function getGroup(id) {
  return request({
    url: '/project/group/' + id,
    method: 'get'
  })
}

// 新增聊天组
export function addGroup(data) {
  return request({
    url: '/project/group',
    method: 'post',
    data: data
  })
}

// 修改聊天组
export function updateGroup(data) {
  return request({
    url: '/project/group',
    method: 'put',
    data: data
  })
}

// 删除聊天组
export function delGroup(id) {
  return request({
    url: '/project/group/' + id,
    method: 'delete'
  })
}
